<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbreqviaticoCreateDlg" widgetVar="PyfntbreqviaticoCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePyfntbreqviaticoTitle}">

            <h:form id="PyfntbreqviaticoCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pyfntbreqviaticoController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqviaticoLabel_requerimiento}" for="requerimiento" />
                        <p:inputText id="requerimiento" value="#{pyfntbreqviaticoController.selected.requerimiento}" title="#{myBundle.CreatePyfntbreqviaticoTitle_requerimiento}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqviaticoRequiredMessage_requerimiento}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqviaticoLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbreqviaticoController.selected.fecharegistro}" title="#{myBundle.EditPyfntbreqviaticoTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyfntbreqviaticoRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqviaticoLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbreqviaticoController.selected.observaciones}" title="#{myBundle.CreatePyfntbreqviaticoTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqviaticoLabel_pyfntbpoaprogid}" for="pyfntbpoaprogid" />
                        <p:selectOneMenu id="pyfntbpoaprogid" value="#{pyfntbreqviaticoController.selected.pyfntbpoaprogid}" required="true" requiredMessage="#{myBundle.EditPyfntbreqviaticoRequiredMessage_pyfntbpoaprogid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpoaprogController.items}"
                                           var="pyfntbpoaprogidItem"
                                           itemValue="#{pyfntbpoaprogidItem}"
                                           itemLabel="#{pyfntbpoaprogidItem.pyfntbpoaprogid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpoaprogConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqviaticoLabel_pyfntbpartidaid}" for="pyfntbpartidaid" />
                        <p:selectOneMenu id="pyfntbpartidaid" value="#{pyfntbreqviaticoController.selected.pyfntbpartidaid}" required="true" requiredMessage="#{myBundle.EditPyfntbreqviaticoRequiredMessage_pyfntbpartidaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpartidaController.items}"
                                           var="pyfntbpartidaidItem"
                                           itemValue="#{pyfntbpartidaidItem}"
                                           itemLabel="#{pyfntbpartidaidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpartidaConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbreqviaticoController.saveNew}" value="#{myBundle.Save}" update="display,:PyfntbreqviaticoListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbreqviaticoCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbreqviaticoCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
